package com.xinzhi.stduyspringboot.conrtoller;
import com.xinzhi.stduyspringboot.service.DeleteService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class DeleteContorller {

    @Resource
    private DeleteService deleteService;

    @GetMapping("/deletebyname")
    @CrossOrigin
    public void getinto(@RequestParam("str") String str){ deleteService.deletename(str);}

}
